<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ page isELIgnored="false" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	response.setCharacterEncoding("UTF-8");
	response.setContentType("text/xml");
	response.setHeader("Cache-Control","no-cache"); 
	response.setHeader("Pragma","no-cache"); 
%>

<menu>
	<s:if test="form.state==0 || form.state==-1">
		<item id="c" text="编辑" action="showDialog('鼎烜电力集团网络办公平台','getLeaveById.action?form.id=<s:property value="form.id"/>',500,420);"/>
		<item id="e" text="-"/>
		<item id="a" text="删除" action="showDialog('鼎烜电力集团网络办公平台','gotoDeleteLeave.action?form.id=<s:property value="form.id"/>', 400,150);"/>
	</s:if>
	<s:if test="form.state==0">
		<item id="a" text="提交审批"  action='showDialog("鼎烜集团  网络办公自动化系统","<%=basePath %>leaveCheck/leaveCheckAction!gotoSubmitCheck.action?id=<s:property value='form.id' />&amp;proKey=leave","320","150");'/>
	</s:if>
	<s:if test="form.state==-1">
		<item id="a" text="重新提交审批"  action='showDialog("鼎烜集团  网络办公自动化系统","<%=basePath %>leaveCheck/leaveCheckAction!gotoSubmitCheck.action?id=<s:property value='form.id' />&amp;proKey=leave","320","150");'/>
	</s:if>
	<s:if test="form.state==1 && #session.user.roleName==form.checkRole">
		<item id="a" text="同意"  action='showDialog("鼎烜集团  网络办公自动化系统","<%=basePath %>checkIdea/checkIdeaAction!gotoCheckIdea.action?checkIdeaForm.checkFolwId=<s:property value='form.id' />&amp;checkIdeaForm.classFlag=leave&amp;checkIdeaForm.check=true","500","400");'/>
		<item id="a" text="驳回"  action='showDialog("鼎烜集团  网络办公自动化系统","<%=basePath %>checkIdea/checkIdeaAction!gotoCheckIdea.action?checkIdeaForm.checkFolwId=<s:property value='form.id' />&amp;checkIdeaForm.classFlag=leave&amp;checkIdeaForm.check=false","500","400");'/>
	</s:if>
	<s:if test="form.state==100 || form.state==-1 || form.state==1">
		<item id="a" text="查看审批意见"  action='showDialog("鼎烜集团  网络办公自动化系统","<%=basePath %>checkIdea/checkIdeaAction!getByCheckFolwId.action?checkFolwId=<s:property value='form.id' />","800","500");'/>
	</s:if>
</menu>  
